<%@ page import="java.util.*" %>
<%@ page import="net.sf.json.*"%>
<%
	int viewWidth = 0; 
	if(null != request.getAttribute("viewWidth")){
	 viewWidth=Integer.valueOf((String)request.getAttribute("viewWidth"));
	 request.setAttribute("viewWidth",viewWidth);
	}
	
	String libUrl = "gmcc_ext";
	String smcPrefix = "";
	Map model = (Map) request.getAttribute("model");
	if (null != model) {
		if (!model.containsKey("margins")&&(null == request.getAttribute("viewWidth")))
		 	model.put("margins", "151 0 0 0");
		if (!model.containsKey("margins")&&((null != request.getAttribute("viewWidth"))&&
		(request.getAttribute("viewWidth")!="0")
		)
		)
		 	model.put("margins", "115 0 0 0");
		 	
		if (!model.containsKey("smcPrefix")
				|| ((String) model.get("smcPrefix")).length() == 0)
			model.put("smcPrefix", "http://pac-app.gmcc.net/smc");
		libUrl = (String) model.get("libUrl");
		smcPrefix = (String) model.get("smcPrefix");
	}
%>
<!-- DEBUG BY FRANK 2010-01-12  fix top v0.11-->
<script language="javascript">
var model= <%=JSONObject.fromObject(request
									.getAttribute("model"))%>;
var viewWidth = <%=request.getAttribute("viewWidth")%>;										
</script>
<link rel="stylesheet" type="text/css"
	href="http://pac-lib.gmcc.net/share/lib/ext-2.3.0/resources/css/ext-all.css" />
<script type="text/javascript"
	src="http://pac-lib.gmcc.net/share/lib/ext-2.3.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="http://pac-lib.gmcc.net/share/lib/ext-2.3.0/ext-all.js"></script>
<link rel="stylesheet" type="text/css"
	href="<%=libUrl%>/ext-portal/portal.css" />

<script type="text/javascript" src="<%=libUrl%>/ext-portal/Portal.js"></script>
<script type="text/javascript" src="<%=libUrl%>/ext-portal/PortalColumn.js"></script>
<script type="text/javascript" src="<%=libUrl%>/ext-portal/Portlet.js"></script>
<script type="text/javascript" src="<%=libUrl%>/ext-portal/iframe.js"></script>
<script type="text/javascript" src="<%=libUrl%>/trimpath/template.js"></script>

<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myRefactor/saveCurLayoutFn.js"></script>
<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myRefactor/myPortalPanel.js"></script>
<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myRefactor/handleMaximizeFn.js"></script>
<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myRefactor/myPortletPanel.js"></script>

<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myNewjs/MyChannalTree.js"></script>
<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myNewjs/MyTopPanel.js"></script>
<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myNewjs/MyCenterPanel.js"></script>
<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myNewjs/setupDropTargetsFn.js"></script>
<script type="text/javascript"
	src="<%=libUrl%>/javascripts/myNewjs/getChannelFromNodeFn.js"></script>
<script>		
	Ext.onReady(function() {
		init_edit();
	});
    </script>
<script type="text/javascript" src="<%=libUrl%>/javascripts/index.js"></script>
